﻿using System;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Windows.Media.Imaging;
using SC2TV.Object;

namespace SC2TV.Tools
{
    public static class ChatParser
    {
        public static string CloseRunTag(this string item)
        {
            
            item = item + "\"/>";
            item = "<Section xmlns=\"http://schemas.microsoft.com/winfx/2006/xaml/presentation\"><Paragraph>" + item + "</Paragraph></Section>";
            return item;
        }

        public static string TransformTags(this string item)
        {
            var urlMatch = Regex.Match(item, "\\[url\\].+\\[/url\\]");
            if (urlMatch.Success)
            {
                var url = urlMatch.ToString().Replace("[url]", "").Replace("[/url]", "");
                item = item.Replace(urlMatch.ToString(), "\"/><Hyperlink TargetName=\"_blank\" NavigateUri=\"" + url + "\">" + url + "</Hyperlink><Run Text=\"");
            }
            var bMatch = Regex.Match(item, "\\[b].+\\[/b]");
            if (bMatch.Success)
            {
                var boldText = bMatch.ToString().Replace("[b]", "").Replace("[/b]", "");
                item = item.Replace(bMatch.ToString(), "\"/><Run FontWeight=\"Bold\" Text=\"" + boldText + "\" /><Run Text=\"");
            }
            var result = item;
            return result;
        }

        public static string AddLogin(this string input, string login, string role)
        {
            if (role.Equals("user"))
            {
                input = "<Run Foreground=\"#7797be\" Text=\"" + login + ": \"/><Run Text=\"" + input;
                return input;
            }
            if (role.Equals("admin"))
            {
                input = "<Run Foreground=\"#bc3c3e\" Text=\"" + login + ": \"/><Run Text=\"" + input;
                return input;
            }
            if (role.Equals("moderator"))
            {
                input = "<Run Foreground=\"#C57C08\" Text=\"" + login + ": \"/><Run Text=\"" + input;
                return input;
            }
            if (role.Equals("streamer"))
            {
                input = "<Run Foreground=\"#5DA130\" Text=\"" + login + ": \"/><Run Text=\"" + input;
                return input;
            }
            if (role.Equals("editor"))
            {
                input = "<Run Foreground=\"#dad871\" Text=\"" + login + ": \"/><Run Text=\"" + input;
                return input;
            }
            if (role.Equals("userstream-editor"))
            {
                input = "<Run Foreground=\"#009999\" Text=\"" + login + ": \"/><Run Text=\"" + input;
                return input;
            }
            return input;
        }

        public static string TransformEmotions(this string input)
        {
            const string ending = ".png\"/></InlineUIContainer><Run Text=\"";
            const string url = "\"/><InlineUIContainer><Image Stretch=\"None\" Source=\"http://chat.sc2tv.ru/img/";
            input = input
                .Replace(":s:happy:", url + "a" + ending)
                .Replace(":s:aws:", url + "awesome" + ending)
                .Replace(":s:nc:", url + "nocomments" + ending)
                .Replace(":s:manul:", url + "manul" + ending)
                .Replace(":s:crazy:", url + "crazy" + ending)
                .Replace(":s:crazy:", url + "cry" + ending)
                .Replace(":s:glory:", url + "glory" + ending)
                .Replace(":s:kawai:", url + "kawai" + ending)
                .Replace(":s:mee:", url + "mee" + ending)
                .Replace(":s:omg:", url + "omg" + ending)
                .Replace(":s:whut:", url + "mhu" + ending)
                .Replace(":s:sad:", url + "sad" + ending)
                .Replace(":s:spk:", url + "slowpoke" + ending)
                .Replace(":s:hmhm:", url + "2" + ending)
                .Replace(":s:mad:", url + "mad" + ending)
                .Replace(":s:angry:", url + "aangry" + ending)
                .Replace(":s:xd:", url + "ii" + ending)
                .Replace(":s:huh:", url + "huh" + ending)
                .Replace(":s:tears:", url + "happycry" + ending)
                .Replace(":s:notch:", url + "notch" + ending)
                .Replace(":s:vaga:", url + "vaganych" + ending)
                .Replace(":s:ra:", url + "ra" + ending)
                .Replace(":s:fp:", url + "facepalm" + ending)
                .Replace(":s:neo:", url + "smith" + ending)
                .Replace(":s:peka:", url + "mini-happy" + ending)
                .Replace(":s:trf:", url + "trollface" + ending)
                .Replace(":s:fu:", url + "fuuuu" + ending)
                .Replace(":s:why:", url + "why" + ending)
                .Replace(":s:yao:", url + "yao" + ending)
                .Replace(":s:fyeah:", url + "fyeah" + ending)
                .Replace(":s:lucky:", url + "lol" + ending)
                .Replace(":s:okay:", url + "okay" + ending)
                .Replace(":s:alone:", url + "alone" + ending)
                .Replace(":s:joyful:", url + "ewbte" + ending)
                .Replace(":s:wtf:", url + "wtf" + ending)
                .Replace(":s:danu:", url + "daladno" + ending)
                .Replace(":s:gusta:", url + "megusta" + ending)
                .Replace(":s:bm:", url + "bm" + ending)
                .Replace(":s:lol:", url + "loool" + ending)
                .Replace(":s:notbad:", url + "notbad" + ending)
                .Replace(":s:rly:", url + "really" + ending)
                .Replace(":s:cap:", url + "cap" + ending)
                .Replace(":s:adolf:", url + "adolf" + ending)
                .Replace(":s:vdv:", url + "vitya" + ending)
                .Replace(":s:crab:", url + "crab" + ending)
                .Replace(":s:dobro:", url + "dobre" + ending)
                .Replace(":s:nook:", url + "no-okay" + ending)
                .Replace(":s:fire:", url + "fire" + ending)
                .Replace(":s:epeka:", url + "epeka" + ending)
                .Replace(":s:opeka:", url + "opeka" + ending)
                .Replace(":s:ocry:", url + "ocry" + ending)
                .Replace(":s:neponi:", url + "neponi" + ending)
                .Replace(":s:grumpy:", url + "grumpy" + ending)
                .Replace(":s:bin:", url + "bin" + ending)
                .Replace(":s:trash:", url + "trash" + ending)
                .Replace("s:daaa:", url + "daaa" + ending)
                .Replace(":s:gg:", url + "gg" + ending)
                .Replace(":s:lgun:", url + "lgun" + ending)
                .Replace(":s:lknife:", url + "lknife" + ending)
                .Replace(":s:mule:", url + "mule" + ending)
                .Replace(":s:pushka:", url + "pushka" + ending)
                .Replace(":s:rgun:", url + "rgun" + ending)
                .Replace(":s:rknife:", url + "rknife" + ending)
                .Replace(":s:pekaking:", url + "pekaking" + ending)
                .Replace(":s:coupeka:", url + "coupeka" + ending)
                .Replace(":s:imbaimba:", url + "imbaimba" + ending)
                .Replace(":s:nelson:", url + "nelson" + ending)
                .Replace(":s:vsem:", url + "vsem" + ending)
                .Replace(":s:wat:", url + "wat" + ending)
                .Replace(":s:ban:", url + "banan" + ending)
                .Replace(":s:br:", url + "br" + ending)
                .Replace(":s:fpl:", url + "leefacepalm" + ending)
                .Replace(":s:ht:", url + "heart" + ending)
                .Replace(":s:bratok:", url + "bratok" + ending)
                .Replace(":s:strelok:", url + "strelok" + ending)
                .Replace(":s:white-ra:", url + "white-ra" + ending)
                .Replace(":s:dimaga:", url + "dimaga" + ending)
                .Replace(":s:bruce:", url + "bruce" + ending)
                .Replace(":s:jae:", url + "jaedong" + ending)
                .Replace(":s:flash:", url + "flash1" + ending)
                .Replace(":s:bisu:", url + "bisu" + ending)
                .Replace(":s:jangbi:", url + "jangbi" + ending)
                .Replace(":s:idra:", url + "idra" + ending)
                .Replace(":s:imba:", url + "djigurda" + ending)
                .Replace(":s:chuck:", url + "chan" + ending)
                .Replace(":s:tgirl:", url + "brucelove" + ending)
                .Replace(":s:top1sng:", url + "happy" + ending)
                .Replace(":s:slavik:", url + "slavik" + ending)
                .Replace(":s:olsilove:", url + "olsilove" + ending)
                .Replace(":s:kas:", url + "kas" + ending)
                .Replace(":s:pool:", url + "pool" + ending)
                .Replace(":s:ej:", url + "ejik" + ending)
                .Replace(":s:mario:", url + "mario" + ending)
                .Replace(":s:tort:", url + "tort" + ending)
                .Replace(":s:arni:", url + "terminator" + ending)
                .Replace(":s:hero:", url + "heroes3" + ending)
                .Replace(":s:mc:", url + "mine" + ending)
                .Replace(":s:osu:", url + "osu" + ending)
                .Replace(":s:q3:", url + "q3" + ending)
                .Replace(":s:tigra:", url + "tigrica" + ending)
                .Replace(":s:volck:", url + "voOlchik1" + ending)
                .Replace(":s:hpeka:", url + "harupeka" + ending)
                .Replace(":s:slow:", url + "spok" + ending)
                .Replace(":s:alex:", url + "alfi" + ending)
                .Replace(":s:panda:", url + "panda" + ending)
                .Replace(":s:sun:", url + "sunl" + ending)
                .Replace(":s:cou:", url + "cougar" + ending)
                .Replace(":s:wb:", url + "wormban" + ending)
                .Replace(":s:theweedle:", url + "weedle" + ending)
                .Replace(":s:apc:", url + "apochai" + ending)
                .Replace(":s:globus:", url + "globus" + ending)
                .Replace(":s:cow:", url + "cow" + ending)
                .Replace(":s:fpd:", url + "fp" + ending)
                .Replace(":s:hg:", url + "hg" + ending)
                .Replace(":s:yoko:", url + "yoko" + ending)
                .Replace(":s:miku:", url + "miku" + ending)
                .Replace(":s:winry:", url + "winry" + ending)
                .Replace(":s:asuka:", url + "asuka" + ending)
                .Replace(":s:konata:", url + "konata" + ending)
                .Replace(":s:reimu:", url + "reimu" + ending)
                .Replace(":s:sex:", url + "sex" + ending)
                .Replace(":s:mimo:", url + "mimo" + ending)
                .Replace(":s:mandarin:", url + "mandarin" + ending)
                .Replace(":s:grafon:", url + "grafon" + ending)
                .Replace(":s:moon:", url + "moon" + ending)
                .Replace(":s:ghost:", url + "gay" + ending)
                .Replace(":s:omsk:", url + "omsk" + ending)
                .Replace(":s:bobr:", url + "bobr" + ending)
                .Replace(":s:yeah:", url + "yeah" + ending)
                .Replace(":s:probe:", url + "probe" + ending)
                .Replace(":s:ling:", url + "ling" + ending)
                .Replace(":s:marine:", url + "marine" + ending)
                .Replace(":s:mvp:", url + "mvp" + ending)
                .Replace(":s:kim:", url + "kim" + ending)
                .Replace(":s:kot:", url + "kot" + ending)
                .Replace(":s:sm1:", url + "sm1" + ending)
                .Replace(":s:warn:", url + "warn" + ending)
                .Replace(":s:blue:", url + "blue" + ending)
                .Replace(":s:gold:", url + "gold" + ending)
                .Replace(":s:grey:", url + "grey" + ending)
                .Replace(":s:purp:", url + "purp" + ending)
                .Replace(":s:red:", url + "red" + ending)
                .Replace(":s:op:", url + "op" + ending)
                .Replace(":s:666:", url + "666" + ending)
                .Replace(":s:bear:", url + "bear" + ending)
                .Replace(":s:drone:", url + "drone" + ending)
                .Replace(":s:no:", url + "no" + ending)
                .Replace(":s:ploho:", url + "ploho" + ending)
                .Replace(":s:support:", url + "support" + ending)
                .Replace(":s:plasma:", url + "plasma" + ending)
                .Replace(":s:ff:", url + "ff" + ending)
                .Replace(":s:rage:", url + "rage" + ending)
                .Replace(":s:kingalf:", url + "alfi-crown" + ending)
                .Replace(":s:mofgod:", url + "mother-of-the-god" + ending)
                .Replace(":s:prime:", url + "fredy18" + ending)
                .Replace(":s:ilied:", url + "ilied" + ending)
                .Replace(":s:gogo", url + "gogo" + ending)
                .Replace(":s:pekling:", url + "pekling" + ending)
                .Replace(":s:zeal:", url + "zeal" + ending)
                .Replace(":s:infe:", url + "infe" + ending)
                .Replace(":s:cheese:", url + "cheese" + ending)
                .Replace(":s:dark:", url + "dark" + ending)
                .Replace(":s:reaper:", url + "reaper" + ending)
                .Replace(":s:maro:", url + "maro" + ending)
                .Replace(":s:butth:", url + "butth" + ending)
                .Replace(":s:pri21:", url + "pri21" + ending)
                .Replace(":s:daya:", url + "daya" + ending)
                .Replace(":s:ggwp:", url + "ggwp" + ending)
                .Replace(":s:kid:", url + "kid" + ending)
                .Replace(":s:num1:", url + "num1" + ending)
                .Replace(":s:poker:", url + "poker" + ending)
                .Replace(":s:povar:", url + "povar" + ending)
                .Replace(":s:vuvu:", url + "vuvu" + ending)
                .Replace(":s:angryling:", url + "angryling" + ending)
                .Replace(":s:casterling:", url + "casterling" + ending)
                .Replace(":s:kawailing:", url + "kawailing" + ending)
                .Replace(":s:richpeka:", url + "richpeka" + ending)
                .Replace(":s:uprls:", url + "uprls" + ending);
            return input;
        }

        public static List<Emotions> Emotions
        {
            get
            {
                return new List<Emotions>
                {
                    new Emotions {Code = ":s:happy:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/a.png"))},
                    new Emotions {Code = ":s:aws"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/awesome.png"))},
                    new Emotions {Code = ":s:nc:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/nocomments.png"))},
                    new Emotions {Code = ":s:manul"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/manul.png"))},
                    new Emotions {Code = ":s:crazy:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/crazy.png"))},
                    new Emotions {Code = ":s:crazy:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/cry.png"))},
                    new Emotions {Code = ":s:glory:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/glory.png"))},
                    new Emotions {Code = ":s:kawai:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/kawai.png"))},
                    new Emotions {Code = ":s:mee:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mee.png"))},
                    new Emotions {Code = ":s:omg:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/omg.png"))},
                    new Emotions {Code = ":s:whut:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mhu.png"))},
                    new Emotions {Code = ":s:sad:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/sad.png"))},
                    new Emotions {Code = ":s:spk:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/slowpoke.png"))},
                    new Emotions {Code = ":s:hmhm:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/2.png"))},
                    new Emotions {Code = ":s:mad:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mad.png"))},
                    new Emotions {Code = ":s:angry:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/aangry.png"))},
                    new Emotions {Code = ":s:xd:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ii.png"))},
                    new Emotions {Code = ":s:huh:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/huh.png"))},
                    new Emotions {Code = ":s:tears:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/happycry.png"))},
                    new Emotions {Code = ":s:notch:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/notch.png"))},
                    new Emotions {Code = ":s:vaga:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/vaganych.png"))},
                    new Emotions {Code = ":s:ra:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ra.png"))},
                    new Emotions {Code = ":s:fp:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/facepalm.png"))},
                    new Emotions {Code = ":s:neo:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/smith.png"))},
                    new Emotions {Code = ":s:peka:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mini-happy.png"))},
                    new Emotions {Code = ":s:trf:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/trollface.png"))},
                    new Emotions {Code = ":s:fu:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/fuuuu.png"))},
                    new Emotions {Code = ":s:why:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/why.png"))},
                    new Emotions {Code = ":s:yao:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/yao.png"))},
                    new Emotions {Code = ":s:fyeah:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/fyeah.png"))},
                    new Emotions {Code = ":s:lucky:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/lol.png"))},
                    new Emotions {Code = ":s:okay:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/okay.png"))},
                    new Emotions {Code = ":s:alone:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/alone.png"))},
                    new Emotions {Code = ":s:joyful:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ewbte.png"))},
                    new Emotions {Code = ":s:wtf:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/wtf.png"))},
                    new Emotions {Code = ":s:danu:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/daladno.png"))},
                    new Emotions {Code = ":s:gusta:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/megusta.png"))},
                    new Emotions {Code = ":s:bm:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bm.png"))},
                    new Emotions {Code = ":s:lol:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/loool.png"))},
                    new Emotions {Code = ":s:notbad:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/notbad.png"))},
                    new Emotions {Code = ":s:rly:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/really.png"))},
                    new Emotions {Code = ":s:ban:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/banan.png"))},
                    new Emotions {Code = ":s:cap:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/cap.png"))},
                    new Emotions {Code = ":s:br:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/br.png"))},
                    new Emotions {Code = ":s:fpl:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/leefacepalm.png"))},
                    new Emotions {Code = ":s:ht:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/heart.png"))},
                    new Emotions {Code = ":s:adolf:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/adolf.png"))},
                    new Emotions {Code = ":s:bratok:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bratok.png"))},
                    new Emotions {Code = ":s:strelok:"  , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/strelok.png"))},
                    new Emotions {Code = ":s:white-ra:" , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/white-ra.png"))},
                    new Emotions {Code = ":s:dimaga:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/dimaga.png"))},
                    new Emotions {Code = ":s:bruce:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bruce.png"))},
                    new Emotions {Code = ":s:jae:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/jaedong.png"))},
                    new Emotions {Code = ":s:flash:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/flash1.png"))},
                    new Emotions {Code = ":s:bisu:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bisu.png"))},
                    new Emotions {Code = ":s:jangbi:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/jangbi.png"))},
                    new Emotions {Code = ":s:idra:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/idra.png"))},
                    new Emotions {Code = ":s:vdv:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/vitya.png"))},
                    new Emotions {Code = ":s:imba:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/djigurda.png"))},
                    new Emotions {Code = ":s:chuck:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/chan.png"))},
                    new Emotions {Code = ":s:tgirl:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/brucelove.png"))},
                    new Emotions {Code = ":s:top1sng:"  , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/happy.png"))},
                    new Emotions {Code = ":s:slavik:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/slavik.png"))},
                    new Emotions {Code = ":s:olsilove:" , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/olsilove.png"))},
                    new Emotions {Code = ":s:kas:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/kas.png"))},
                    new Emotions {Code = ":s:pool:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/pool.png"))},
                    new Emotions {Code = ":s:ej:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ejik.png"))},
                    new Emotions {Code = ":s:mario:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mario.png"))},
                    new Emotions {Code = ":s:tort:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/tort.png"))},
                    new Emotions {Code = ":s:arni:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/terminator.png"))},
                    new Emotions {Code = ":s:crab:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/crab.png"))},
                    new Emotions {Code = ":s:hero:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/heroes3.png"))},
                    new Emotions {Code = ":s:mc:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mine.png"))},
                    new Emotions {Code = ":s:osu:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/osu.png"))},
                    new Emotions {Code = ":s:q3:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/q3.png"))},
                    
                    new Emotions {Code = ":s:tigra:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/tigrica.png"))},
                    new Emotions {Code = ":s:volck:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/voOlchik1.png"))},
                    new Emotions {Code = ":s:hpeka:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/harupeka.png"))},
                    new Emotions {Code = ":s:slow:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/spok.png"))},
                    new Emotions {Code = ":s:alex:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/alfi.png"))},
                    new Emotions {Code = ":s:panda:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/panda.png"))},
                    new Emotions {Code = ":s:sun:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/sunl.png"))},
                    new Emotions {Code = ":s:cou:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/cougar.png"))},
                    new Emotions {Code = ":s:wb:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/wormban.png"))},
                    
                    new Emotions {Code = ":s:dobro:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/dobre.png"))},

                    new Emotions {Code = ":s:theweedle:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/weedle.png"))},
                    new Emotions {Code = ":s:apc:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/apochai.png"))},
                    new Emotions {Code = ":s:globus:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/globus.png"))},
                    new Emotions {Code = ":s:cow:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/cow.png"))},

                    new Emotions {Code = ":s:nook:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/no-okay.png"))},

                    new Emotions {Code = ":s:fpd:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/fp.png"))},
                    new Emotions {Code = ":s:hg:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/hg.png"))},
                    new Emotions {Code = ":s:yoko:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/yoko.png"))},
                    new Emotions {Code = ":s:miku:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/miku.png"))},
                    new Emotions {Code = ":s:winry:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/winry.png"))},
                    new Emotions {Code = ":s:asuka:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/asuka.png"))},
                    new Emotions {Code = ":s:konata:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/konata.png"))},
                    new Emotions {Code = ":s:reimu:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/reimu.png"))},
                    new Emotions {Code = ":s:sex:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/sex.png"))},
                    new Emotions {Code = ":s:mimo:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mimo.png"))},
                    
                    new Emotions {Code = ":s:fire:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/fire.png"))},
                    
                    new Emotions {Code = ":s:mandarin:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mandarin.png"))},
                    new Emotions {Code = ":s:grafon:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/grafon.png"))},
                    
                    new Emotions {Code = ":s:epeka:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/epeka.png"))},
                    new Emotions {Code = ":s:opeka:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/opeka.png"))},
                    new Emotions {Code = ":s:ocry:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ocry.png"))},
                    new Emotions {Code = ":s:neponi:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/neponi.png"))},
                    
                    new Emotions {Code = ":s:moon:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/moon.png"))},
                    new Emotions {Code = ":s:ghost:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/gay.png"))},
                    new Emotions {Code = ":s:omsk:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/omsk.png"))},
                    
                    new Emotions {Code = ":s:grumpy:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/grumpy.png"))},

                    new Emotions {Code = ":s:bobr:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bobr.png"))},
                    new Emotions {Code = ":s:yeah:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/yeah.png"))},
                    new Emotions {Code = ":s:probe:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/probe.png"))},
                    new Emotions {Code = ":s:ling:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ling.png"))},
                    new Emotions {Code = ":s:marine:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/marine.png"))},
                    new Emotions {Code = ":s:mvp:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mvp.png"))},
                    
                    new Emotions {Code = ":s:bin"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bin.png"))},
                    
                    new Emotions {Code = ":s:kim:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/kim.png"))},
                    new Emotions {Code = ":s:kot:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/kot.png"))},
                    new Emotions {Code = ":s:sm1:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/sm1.png"))},
                    new Emotions {Code = ":s:warn:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/warn.png"))},
                    
                    new Emotions {Code = ":s:trash:"    , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/trash.png"))},
                    
                    new Emotions {Code = ":s:blue:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/blue.png"))},
                    new Emotions {Code = ":s:gold:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/gold.png"))},
                    new Emotions {Code = ":s:grey:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/grey.png"))},
                    new Emotions {Code = ":s:purp:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/purp.png"))},
                    new Emotions {Code = ":s:red:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/red.png"))},
                    
                    new Emotions {Code = "s:daaa:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/daaa.png"))},
                    new Emotions {Code = ":s:gg:"       , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/gg.png"))},

                    new Emotions {Code = ":s:op:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/op.png"))},
                    new Emotions {Code = ":s:666:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/666.png"))},
                    new Emotions {Code = ":s:bear:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/bear.png"))},
                    new Emotions {Code = ":s:drone:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/drone.png"))},

                    new Emotions {Code = ":s:lgun:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/lgun.png"))},
                    new Emotions {Code = ":s:lknife:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/lknife.png"))},
                    new Emotions {Code = ":s:mule:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mule.png"))},

                    new Emotions {Code = ":s:no:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/no.png"))},
                    new Emotions {Code = ":s:ploho:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ploho.png"))},
                    
                    new Emotions {Code = ":s:pushka:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/pushka.png"))},
                    new Emotions {Code = ":s:rgun:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/rgun.png"))},
                    new Emotions {Code = ":s:rknife:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/rknife.png"))},
                    
                    new Emotions {Code = ":s:support:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/support.png"))},
                    new Emotions {Code = ":s:plasma:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/plasma.png"))},
                    new Emotions {Code = ":s:ff:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ff.png"))},
                    new Emotions {Code = ":s:rage:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/rage.png"))},
                    new Emotions {Code = ":s:kingalf:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/alfi-crown.png"))},
                    new Emotions {Code = ":s:mofgod:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/mother-of-the-god.png"))},
                    new Emotions {Code = ":s:prime:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/fredy18.png"))},
                    
                    new Emotions {Code = ":s:pekaking:" , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/pekaking.png"))},
                    
                    new Emotions {Code = ":s:ilied:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ilied.png"))},
                    
                    new Emotions {Code = ":s:coupeka:"  , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/coupeka.png"))},
                    
                    new Emotions {Code = ":s:gogo:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/gogo.png"))},
                    new Emotions {Code = ":s:pekling:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/pekling.png"))},
                    new Emotions {Code = ":s:zeal:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/zeal.png"))},
                    new Emotions {Code = ":s:infe:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/infe.png"))},
                    new Emotions {Code = ":s:cheese:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/cheese.png"))},
                    new Emotions {Code = ":s:dark:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/dark.png"))},
                    new Emotions {Code = ":s:reaper:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/reaper.png"))},
                    new Emotions {Code = ":s:maro:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/maro.png"))},
                    new Emotions {Code = ":s:butth:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/butth.png"))},
                    new Emotions {Code = ":s:pri21:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/pri21.png"))},
                    new Emotions {Code = ":s:daya:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/daya.png"))},
                    new Emotions {Code = ":s:ggwp:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/ggwp.png"))},
                    
                    new Emotions {Code = ":s:imbaimba:" , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/imbaimba.png"))},

                    new Emotions {Code = ":s:kid:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/kid.png"))},
                    new Emotions {Code = ":s:num1:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/num1.png"))},
                    new Emotions {Code = ":s:poker:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/poker.png"))},
                    new Emotions {Code = ":s:povar:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/povar.png"))},
                    new Emotions {Code = ":s:vuvu:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/vuvu.png"))},
                    new Emotions {Code = ":s:angryling:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/angryling.png"))},
                    new Emotions {Code = ":s:casterling:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/casterling.png"))},
                    new Emotions {Code = ":s:kawailing:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/kawailing.png"))},
                    
                    new Emotions {Code = ":s:nelson:"   , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/nelson.png"))},

                    new Emotions {Code = ":s:richpeka:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/richpeka.png"))},
                    new Emotions {Code = ":s:uprls:", Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/uprls.png"))},
                    
                    new Emotions {Code = ":s:vsem:"     , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/vsem.png"))},
                    new Emotions {Code = ":s:wat:"      , Image = new BitmapImage(new Uri("http://chat.sc2tv.ru/img/wat.png"))}
                };
            }
        } 
    }
}
